<!doctype html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <script type="text/javascript" src="${path}/html/js/js-jsp/ba/commonDict/commonDictOption.js?v=<%out.print(Math.random());%>"></script>

</head>
<body>
<div class="place">
    <span>当前位置：</span>
    <ul class="placeul">
        <li><a href="${path}/commonDict/index.do" id="aa">字典管理</a></li>
        <c:if test="${commonDict.cdId == null}">
            <li><a>添加字典</a></li>
        </c:if>
        <c:if test="${commonDict.cdId!= null}">
            <li><a>修改字典</a></li>
        </c:if>
    </ul>
</div>
<form id="operate_form" class="form" method="post" action="#">
    <div class="formbody">
        <div style="margin-top: 40px;"><span></span></div>
        <ul class="forminfo">
            <li>
                <label style="text-align:right;">模块名称：</label>
                <input type="hidden" name="cdId" id="cdId" value="${requestScope.commonDict.cdId}" />
                <select class="easyui-combobox"id="modelName"  style="width:255px; height: 32px" editable='false'   />
                <input type="hidden" name="modelName" id="modelName_h" value="${requestScope.commonDict.modelName}" />
            </li>
            <li>
                <label style="text-align:right;">模块代码：</label>
                <input class="easyui-textbox" name="modelCode" id="modelCode" style="width:255px; height: 30px" data-options="editable:false"  />
                <input type="hidden" id="this_modelCode"  value="${requestScope.commonDict.modelCode}" />
            </li>
            <li>
                <label style="text-align:right;">功能名称：</label>
                <select class="easyui-combobox" style="width:255px; height: 32px" id="funName" style="width: 200px" editable="false" data-options="editable:false" />
                <input type="hidden" name="funName" id="funName_h" value="" />
            </li>
            <li>
                <label style="text-align:right;">功能代码：</label>
                <input class="easyui-textbox" name="funCode" id="funCode"  style="width:255px; height: 30px" data-options="editable:false"  />
                <input type="hidden" id="this_funCode"  value="${requestScope.commonDict.funCode}" />
            </li>
            <li>
                <label style="text-align:right;">属性名称：</label>
                <input class="easyui-textbox" name="propertyName" id="propertyName" style="width:255px; height: 30px"  data-options="required:true,prompt:'请输入属性名称',validType:'length[1,15]'" missingMessage="属性名称不能为空" value="${requestScope.commonDict.propertyName}" />

            </li>
            <li>
                <label style="text-align:right;">属性代码：</label>
                <input class="easyui-textbox" name="propertyCode" id="propertyCode" style="width:255px; height: 30px" data-options="required:true,prompt:'请输入属性代码',validType:'length[1,15]'" missingMessage="属性代码不能为空"  value="${requestScope.commonDict.propertyCode}"/>
            </li>
            <c:if test="${requestScope.commonDict.propertySort==null}" >
                <li>
                    <label style="text-align:right;">排序：</label>
                    <input class="easyui-numberspinner" name="sort"  editable="false" value="1" data-options="labelPosition:'top',spinAlign:'right',min:1,max:99" style="width:255px; height: 32px">
                </li>
            </c:if>
            <c:if test="${requestScope.commonDict.propertySort!=null}" >
                <li>
                    <label style="text-align:right;">排序：</label>
                    <input class="easyui-numberspinner" name="sort"  editable="false" value="${requestScope.commonDict.propertySort}" data-options="labelPosition:'top',spinAlign:'right',min:1,max:99" style="width:255px; height: 32px">
                </li>
            </c:if>
            <li>
                <label style="text-align:right;">父级代码：</label>
                <input class="easyui-textbox" type="text" name="propertyParentCode" value="0" id="propertyParentCode"
                       data-options="required:true" missingMessage="父级代码不能为空" style="width:255px; height: 30px"  value="${requestScope.commonDict.propertyParentCode}"/>
            </li>
            <li>
                <label style="text-align:right;">是否启用：</label>
                <select class="easyui-combobox" name="status" id="status" style="width:255px; height: 32px" editable="false" data-options="prompt:'--请选择是否启用--'">
                    <option value="1" ${commonDict.status == 1 ? " selected=\"selected\""  : ""}>启用</option>
                    <option value="2" ${commonDict.status == 2 ? " selected=\"selected\""  : ""}>关闭</option>
                </select>
                <input type="hidden"  id="status_h" value="${requestScope.commonDict.status}"  />
            </li>
        </ul>
    </div>
</form>
<div class="formbody" style="margin-left: 120px">
    <a id="optionCommonDict" class="easyui-linkbutton c1" style="width:100px; height: 35px">保存</a>
    &nbsp;&nbsp;&nbsp;
    <a href="${path}/commonDict/index.do" class="easyui-linkbutton c1" style="width:100px; height: 35px">取消</a>
</div>
</body>
</html>